package cn.ztr.ymcc.dto;

import lombok.Data;
import lombok.experimental.Accessors;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@Data
@Accessors(chain = true)
public class MessageDTO {

    private String title;

    private String content;

    private Date sendTime;

    private List<Eamil> eamils = new ArrayList<>();

    private List<Sms> sms = new ArrayList<>();

    private List<Station> stations = new ArrayList<>();

    @Data
    public static class Eamil{
        private String email;
        private String copyto;
        private Long userId;
    }

    @Data
    public static class Sms{
        private String ip;
        private Long userId;
        private String phone;
    }

    @Data
    public static class Station{
        private String type;
        private Integer isread;
        private Long userId;
    }

}
